package com.tangji.signaltower.constant;

import com.tangji.signaltower.websocket.session.ServerSession;
import io.netty.util.AttributeKey;

/**
 * Author: Amarendar
 * Date: 2020/7/27 下午6:05
 */
public class AttributeConstant {

    /**
     * 通过Attribute实现channel和session的反向绑定
     */
    public static final AttributeKey<ServerSession> SESSION_KEY = AttributeKey.valueOf("SESSION_KEY");

    /**
     * 记录客户端真实IP
     */
    public static final AttributeKey<String> CLIENT_IP = AttributeKey.valueOf("CLIENT_IP");


}
